<template>
    <Content title="资产详情编辑" type="AssetDetailEdit" :id="id"></Content>
</template>
<script setup lang="ts">
import Content from '../AssetManager/components/content.vue'
import { watch, ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const id = ref<any>()

watch(
  () => route,
  async () => {
    if (route.path == '/OA/Assets/AssetsDetailEdit') {
      id.value = route.query.id
    }
  },
  { deep: true, immediate: true }
)

</script>
<style scoped lang="scss"></style>